insheet using ./data/fd_risk.csv, clear
giveme trans 中间变量-Fscore基础数据, merge on(stkcd accper)
generate fd = -log(fd_risk)
reg fd X1 X2 X3 X4 X5
predict fdhat, xb
label var fdhat M分数
winsor2 fdhat, replace
giveme finalized Fscore, merge id(stkcd) t(accper) keep(3)
winsor2 Fscore, replace trim
drop if Fscore == .
drop if fd_risk == .
scatter fdhat Fscore,  graphregion(color(white)) scheme(s2mono) title(F分数与M分数的散点图（1%水平截尾）)
reg fdhat Fscore

keep if Fscore > 2 & fdhat < 2
